package com.space.school.domain;

import java.util.Date;

public class Info {
    public Info() {
    }

    public Info(int product_id, String product_name, int product_price, int product_stock, String product_description, String product_icon, int product_status, int category_type, Date create_time, Date update_time, String category_name) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_price = product_price;
        this.product_stock = product_stock;
        this.product_description = product_description;
        this.product_icon = product_icon;
        this.product_status = product_status;
        this.category_type = category_type;
        this.create_time = create_time;
        this.update_time = update_time;
        this.category_name = category_name;
    }

    //
    private int product_id;
//      商品名称
    private String product_name;
//    单价
    private int product_price;
//    库存
    private int product_stock;
//    描述
    private String product_description;
//    小图
    private String product_icon;
//    商品状态,0正常1下架
    private int product_status;
//    类目编号
    private int category_type;
//    创建时间
    private Date create_time;
//    修改时间
    private Date update_time;
//    类目名称
    private String category_name;
//    商品总数量
    private String product_sum;


    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public int getProduct_price() {
        return product_price;
    }

    public void setProduct_price(int product_price) {
        this.product_price = product_price;
    }

    public int getProduct_stock() {
        return product_stock;
    }

    public void setProduct_stock(int product_stock) {
        this.product_stock = product_stock;
    }

    public String getProduct_description() {
        return product_description;
    }

    public void setProduct_description(String product_description) {
        this.product_description = product_description;
    }

    public String getProduct_icon() {
        return product_icon;
    }

    public void setProduct_icon(String product_icon) {
        this.product_icon = product_icon;
    }

    public int getProduct_status() {
        return product_status;
    }

    public void setProduct_status(int product_status) {
        this.product_status = product_status;
    }

    public int getCategory_type() {
        return category_type;
    }

    public void setCategory_type(int category_type) {
        this.category_type = category_type;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getProduct_sum() {
        return product_sum;
    }

    public void setProduct_sum(String product_sum) {
        this.product_sum = product_sum;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    @Override
    public String toString() {
        return "Info{" +
                "product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", product_price=" + product_price +
                ", product_stock=" + product_stock +
                ", product_description='" + product_description + '\'' +
                ", product_icon='" + product_icon + '\'' +
                ", product_status=" + product_status +
                ", category_type=" + category_type +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", category_name='" + category_name + '\'' +
                '}';
    }
}
